package com.alex.core.domain.business;

import lombok.Data;

import java.util.Map;

/**
 * @author: xc
 * @ClassName: TenantBalance
 * @Date: 2019/11/25 14:23
 * @Description: 租户余额变动
 */
@Data
public class TenantChangeBalance {
    //map参数为tenantId和变动金额
    private Map<Integer,Integer> tenantBalances;
    private Integer moneyActionType; //动作类型：0租户分成结算、1提现、2年费
    private Integer moneyInOutType; //收支类型：0收入，1支出
    private String transRecordId; //交易id
    private Boolean result;//更改余额结果

    public TenantChangeBalance(Map<Integer, Integer> tenantBalances, Integer moneyActionType, Integer moneyInOutType, String transRecordId) {
        this.tenantBalances = tenantBalances;
        this.moneyActionType = moneyActionType;
        this.moneyInOutType = moneyInOutType;
        this.transRecordId = transRecordId;
    }

    public TenantChangeBalance(Integer moneyActionType, Integer moneyInOutType, String transRecordId, Boolean result) {
        this.moneyActionType = moneyActionType;
        this.moneyInOutType = moneyInOutType;
        this.transRecordId = transRecordId;
        this.result = result;
    }
}
